FTP=`which ftp`
BKPDIR=/home/backups/
FTPSERVER=10.100.0.12
FTPUSER=usetawiki
FTPPW=bkp121207

$FTP -in <<EOF
open $FTPSERVER
user $FTPUSER $FTPPW
bin
lcd $BKPDIR
mput *gz
bye
EOF
